package com.cssl.openFeign;

import com.cssl.domain.dto.DtsCartDto;
import com.cssl.util.Result;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;
import java.util.Map;

@FeignClient(value = "DtsShopProvider9090",path = "/cart",contextId = "58")
public interface DtsCartOpenFeignClient {

    @PostMapping("/getCartGoodsCount")
    Result getCartGoodsCount();

    @PostMapping("/addCartGoods")
     Result addCartGoods( @RequestBody DtsCartDto cartDto);

    @PostMapping("/getCartInfoByUid")
     Result getCartInfoByUid();

    @PostMapping("/checkedGoods")
     Result checkedGoods(@RequestBody Map map);

    @PostMapping("/changeNumber")
    Result changeNumber(@RequestBody Map map);

    @PostMapping("/minusCarGoods")
     Result minusCarGoods(@RequestBody Map<String, List<Integer>> map);
}
